public class Demo05_CarSpeed {

    private int carId;
    private int cameraId;
    private double carSpeed;

    public Demo05_CarSpeed() {
    }

    public Demo05_CarSpeed(int carId, int cameraId, double carSpeed) {
        this.carId = carId;
        this.cameraId = cameraId;
        this.carSpeed = carSpeed;
    }

    public int getCarId() {
        return carId;
    }

    public void setCarId(int carId) {
        this.carId = carId;
    }

    public int getCameraId() {
        return cameraId;
    }

    public void setCameraId(int cameraId) {
        this.cameraId = cameraId;
    }

    public double getCarSpeed() {
        return carSpeed;
    }

    public void setCarSpeed(double carSpeed) {
        this.carSpeed = carSpeed;
    }

    @Override
    public String toString() {
        return "Demo05_CarSpeed{" +
                "carId=" + carId +
                ", cameraId=" + cameraId +
                ", carSpeed=" + carSpeed +
                '}';
    }
}
